import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import { Dialog } from 'element-ui';

import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import VueAxios from 'vue-axios'
import router from './router'
import requests from './utils/request'   // 引入你封装的 axios

// 挂载到 Vue 原型
Vue.prototype.$axios = requests
Vue.use(VueAxios, axios)
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(Dialog)
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
